package com.bs.resa;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableTransactionManagement //开启事务管理，等同于xml配置文件中的<tx:annontation-driven>
@MapperScan(basePackages = {"com.bs.resa.dao"})
@EnableSwagger2
public class ResaApplication {

//    http://localhost:8081/resa/swagger-ui.html#!
    public static void main(String[] args) {
        SpringApplication.run(ResaApplication.class, args);

    }
}

